package jaxwsExample.ws;

import java.util.ArrayList;
import java.util.Date;
import javax.jws.WebMethod;
import javax.jws.WebService;
import br.com.news.utils.GenericWS;
import br.com.news.utils.service.interfaces.IUsuarioService;

@WebService
public class HelloWs extends GenericWS {
	IUsuarioService usuarioService;

	@WebMethod(exclude = true)
	public void setUsuarioService(IUsuarioService usuarioService) {
		this.usuarioService = usuarioService;
	}

	public HelloWs() {
		System.out.println("Entro");
	}

	public String sayHello(String name) {
		usuarioService.teste();

		if (name == null) {
			return "Hello";

		}

		return "Hello, " + name + "!";
	}

	public void atualizaUsuarios(ArrayList<Usuario> usuariolist) {

	}

	public void recebeData(Date data) {
		System.out.println("haha olha a data ai" + data);
	}

}